<template>
  <div>
    <el-form ref="form" :model="form" :disabled="true" label-width="80px">
                      <el-form-item label="表单名称" prop="formName">
                        <el-input v-model="form.formName" placeholder="请输入表单名称" />
                      </el-form-item>
                      <el-form-item label="表单配置" prop="formJson">
                        <el-input v-model="form.formJson" placeholder="请输入表单配置" />
                      </el-form-item>
                      <el-form-item label="备注" prop="remark">
                        <el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
                      </el-form-item>
                      <el-form-item label="删除标志" prop="delFlag">
                        <el-input v-model="form.delFlag" placeholder="请输入删除标志" />
                      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="cancel">取 消</el-button>
    </div>
  </div>
</template>

<script>
import EditMixin from "@/minixs/basic/edit"
import request from "@/utils/request";
export default {
  name: "detail",
  mixins:[EditMixin],
  data() {
    return {
      // 表单数据
      form: {
        id: null,
        climecode: null,
        climename: null,
        pcode: null,
        delFlag: null,
        createBy: null,
        updateBy: null,
        createTime: null,
        updateTime: null,
        remark: null
      },
    }
  },
  mounted() {
    request({
      url: '/demo/form' + this.id,
      method: 'get'
    }).then(res=>{
      this.form = res.data;
    })
  },
};
</script>
